import './main.css'

const videoDom = document.querySelector('.video-bg') as HTMLVideoElement
const dialog = document.querySelector('#tips-model') as HTMLDialogElement
const closeDialogBtn = document.querySelector(
  '#closeDialogButton'
) as HTMLButtonElement

videoDom.addEventListener('error', () => {
  dialog.showModal()
})

closeDialogBtn.addEventListener('click', function () {
  dialog.close()
})
